<?php 
use yii\widgets\LinkPager;
use yii\helpers\Html;

 ?>
<div class="jobs-table">
<div class="section-top-content flex items-center">
				<h1>展示职位</h1><h6><a href="?r=job/job">添加职位</a></h6>
			</div> 
	<div class="table-header">
		<div class="table-cells flex" >
			<div ><h6>id</h6></div>
			<div class="salary-cell"><h6>企业招聘职位的起始时间</h6></div>
			<div class="salary-cell"><h6>企业招聘职位的结束时间</h6></div>
			<div class="salary-cell"><h6>职位名称</h6></div>
			<div class="salary-cell"><h6>职位薪资</h6></div>
			<div class="salary-cell"><h6>职位招聘人数</h6></div>
			<div class="salary-cell"><h6>职位招聘基本要求</h6></div>
			<div class="salary-cell"><h6>工作地点</h6></div>
			<div ><h6>操作</h6></div>					
		</div> <!-- end .table-cells -->
	</div> <!-- end .table-header -->
<?php foreach ($res as $k => $v) { ?>
	<div class="table-row">
		<div class="table-cells flex no-wrap">
		<div >
				<td><?= $v['JId'];?></td>
			</div> <!-- end .job-type-cell -->
			<div class="cell job-type-cell flex no-column">
				<td><?= $v['JStart'];?></td>
			</div> <!-- end .job-type-cell -->
			<div class="cell job-type-cell flex no-column">
				<td><?= $v['JSend'];?></td>
			</div> <!-- end .job-type-cell -->
			<div class="cell job-type-cell flex no-column">
				<td><?= $v['JName'];?></td>
			</div> <!-- end .job-type-cell -->
			<div class="cell job-type-cell flex no-column">
				<td><?= $v['JSalary'];?></td>
			</div> <!-- end .job-type-cell -->
			<div class="cell job-type-cell flex no-column">
				<td><?= $v['JNum'];?></td>
			</div> <!-- end .job-type-cell -->
			<div class="cell job-type-cell flex no-column">
				<td><?= $v['JRequ'];?></td>
			</div> <!-- end .job-type-cell -->
			<div class="cell job-type-cell flex no-column">
				<td><?= $v['JAdr'];?></td>
			</div> <!-- end .job-type-cell -->
			<div class="cell job-type-cell flex no-column">
				<td>
					<a href="?r=job/job_del&JId=<?= $v['JId'];?>">删除</a> || 
					<a href="?r=job/job_upd&JId=<?= $v['JId'];?>">修改</a>
				</td>
			</div> <!-- end .job-type-cell -->
		</div> <!-- end .table-cells -->
	</div> <!-- end .table-row -->
<?php } ?>	
<?= LinkPager::widget(['pagination' => $pagination]) ?>

		
</div>